package nbcp.db.mongo

import nbcp.base.extend.*
import nbcp.base.utils.MyUtil

import nbcp.db.mongo.*
import nbcp.db.mongo.entity.SysAnnex
import java.io.File
import java.io.FileWriter
import java.lang.reflect.Field
import java.lang.reflect.ParameterizedType
import java.time.LocalDateTime
import kotlin.collections.HashMap


/**
 * Created by udi on 17-6-11.
 */
internal class GenerateMongo_Mor {
    fun main()  {

        var path = Thread.currentThread().contextClassLoader.getResource("").path.split("/target/")[0]

        nbcp.db.mongo.tool.generator().work(
                File(path).parentFile.path + "/shop-orm/kotlin/nbcp/db/mongo/mor_tables.kt",
                "nbcp.db.mongo.entity.",
                SysAnnex::class.java
        )
    }
}